export interface ICreateOrderRequestData {
  orderId?: string
  source?: string
  handleMobile?: string
  sku?: string
  cardName?: string
  cardId?: string
  consignee?: string
  takeMobile?: string
  takeAddress?: string
  cardFront?: string
  cardBack?: string
  photo?: string
  chargingState?: string
  chargingDate?: Date
  result?: string
  logisticsCompany?: string
  logisticsId?: string
  commissionState?: string
  uid?: string
  salesman?: string
  remark?: string
  recorder?: string
  heId?: string
  sync?: boolean
  // update: Date
}

export interface IUpdateOrderRequestData {
  id: string
  orderId: string
  source: string
  iccid: string
  handleMobile: string
  sku: string
  cardName: string
  cardId: string
  consignee: string
  takeMobile: string
  takeAddress: string
  state?: string
  kickback?: string
  activate?: string
  logisticsState?: string
  note: string
  update?: Date
  recorder?: string
  cardFront: string
  cardBack: string
  photo: string
  chargingState?: string
  chargingDate?: Date
  result: string
  logisticsCompany: string
  logisticsId: string
  commissionState: string
  salesman: string
  remark: string
  heId: string
}

export interface IGetOrderRequestData {
  /** 当前页码 */
  page?: number
  /** 查询条数 */
  size?: number
  /** 订单来源 */
  source?: string
  /**套餐名 */
  sku?: string
  /**身份证名字*/
  cardName?: string
  /**状态 */
  state?: Object
  /**部门 */
  department?: string
  /**订单外部id */
  orderOutId?: string
  /**办理手机号码 */
  handleMobile?: string
  /**身份证 */
  cardId?: string
  /**开始时间 */
  start?: string | number
  /**结束时间 */
  end?: string | number
  /**收件号码 */
  takeMobile?: string
  id?: string
  heId?: string
  superName?: string
  order_re_id?: string
}

export interface IGetOrderData {
  id: string
  orderId: string
  source: string
  iccid: string
  handleMobile: string
  sku: string
  cardName: string
  cardId: string
  consignee: string
  takeMobile: string
  takeAddress: string
  state: Object
  superiorId: string
  superiorName: string
  note: string
  cardFront: string
  cardBack: string
  photo: string
  chargingState: string
  chargingDate: Date
  result: string
  logisticsCompany: string
  logisticsId: string
  commissionState: string
  uid: string
  salesman: string
  remark: string
}

export type GetOrderResponseData = IApiResponseData<{
  list: IGetOrderData[]
  total: number
}>
